/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.x                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/

FoamFile
{
    version         2.0;
    format          ascii;

    root            "";
    case            "";
    instance        "";
    local           "";

    class           dictionary;
    object          setFieldsABLDict;
}

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

#include        "../15000/include/initialConditions"

// Extents of the domain.
xMin                         0.0;
yMin                         0.0;
zMin                         0.0;

xMax                      4000.0;
yMax                      2000.0;
zMax                      1000.0;

zRef                      1000.0;

// Specify if distance from wall should be used as z.
useWallDistZ              false;
scaleVelocityWithHeight   false;

// Specify how to initialze the base velocity and temperature profile.
//velocityInitType          "table";
//velocityInitType          "log";
velocityInitType          "geostrophic";
//temperatureInitType       "table";
temperatureInitType       "simple";

// Maximum perturbation of streamwise/spanwise flow near surface.
deltaU                    0.5;
deltaV                    0.5;

// Total periods of perturbations in streamwise/spanwise in the domain.
Uperiods                  4.0;
Vperiods                  8.0;

// Percentage of domain height (zMax) where peak in perturbation 
// magnitude occurs.
zPeak                     0.03;

// Initial height of the center of the capping inversion.
zInversion                750.0;

// Width of the capping inversion.
widthInversion            100.0;

// Potential temperature at the bottom and top of the capping inversion.
Tbottom                   300.0;
Ttop                      303.0;

// Maximum temperature fluctuation size below capping inversion.
TPrimeScale               0.0;

// Height rate of change of potential temperature above the inversion.
dTdz                      0.003;

// Geostrophic wind speed magnitude.
Ug                        7.03;

// Geostrophic wind speed direction.
UgDir                     270.0;

// Aerodynamic roughness height of surface.
z0                        0.07;

// von Karman constant.
kappa                     0.4;

// Vertical profile table.
profileTable
(
//   z          U       V        T
(9.9999      6.144      0.13804   300.019)
(29.9999     8.37601    0.13426   300.019)
(49.9999     9.18665    0.07964   300.02 )
(69.9999     9.82366    0.02274   300.02 )
(89.9999     10.2645   -0.03411   300.021)
(109.9999    10.6564   -0.09265   300.021)
(129.9999    10.9773   -0.14987   300.022)
(149.9999    11.2714   -0.20364   300.023)
(169.9999    11.5185   -0.26053   300.024)
(189.9999    11.7533   -0.31664   300.024)
(209.9999    11.9579   -0.36723   300.025)
(229.9999    12.1484   -0.42549   300.026)
(249.9999    12.3275   -0.48184   300.028)
(269.9999    12.497    -0.53735   300.029)
(289.9999    12.654    -0.59499   300.03 )
(309.9999    12.8035   -0.64989   300.032)
(329.9999    12.944    -0.70736   300.034)
(349.9999    13.0827   -0.76257   300.036)
(369.9999    13.2181   -0.82177   300.038)
(389.9999    13.3463   -0.87757   300.041)
(409.9999    13.473    -0.93660   300.044)
(429.9999    13.5955   -0.99731   300.048)
(449.9999    13.7207   -1.05982   300.052)
(469.9999    13.8465   -1.12758   300.058)
(489.9999    13.9736   -1.1973    300.066)
(509.9999    14.1111   -1.27974   300.076)
(529.9999    14.2579   -1.37079   300.09 )
(549.9999    14.4249   -1.48388   300.111)
(569.9999    14.623    -1.62015   300.142)
(589.9999    14.8601   -1.78217   300.191)
(609.9999    15.1492   -1.99389   300.267)
(630.0009    15.4981   -2.26226   300.385)
(650.0009    15.8948   -2.59006   300.559)
(670.0009    16.2794   -2.9403    300.806)
(690.0009    16.5958   -3.26397   301.152)
(710.0009    16.8292   -3.52977   301.642)
(730.0009    16.9967   -3.72775   302.337)
(750.0009    17.1126   -3.8611    303.303)
(770.0009    17.1786   -3.9323    304.536)
(790.0009    17.2101   -3.96029   305.798)
(810.0009    17.2134   -3.96214   306.813)
(830.0009    17.1982   -3.95344   307.505)
(850.0009    17.1817   -3.94593   307.916)
(870.0009    17.1734   -3.94332   308.135)
(890.0009    17.1731   -3.94521   308.249)
(910.0009    17.1772   -3.94937   308.322)
(930.0009    17.1836   -3.95389   308.384)
(950.0009    17.1884   -3.95688   308.445)
(970.0009    17.1916   -3.95873   308.507)
(990.0009    17.193    -3.9596    308.569)
(1013.5409   17.1944   -3.96045   308.639)
(1040.9309   17.1955   -3.96143   308.721)
(1068.9609   17.1967   -3.96218   308.805)
(1097.6209   17.1965   -3.96226   308.892)
(1126.9409   17.1967   -3.96241   308.98 )
(1156.9409   17.1964   -3.96235   309.07 )
(1187.6209   17.1968   -3.96251   309.163)
(1219.0009   17.1967   -3.96251   309.257)
(1251.1109   17.1971   -3.96263   309.354)
(1283.9509   17.197    -3.96262   309.453)
(1317.5409   17.1973   -3.96269   309.554)
(1351.9109   17.1972   -3.96265   309.657)
(1387.0609   17.1974   -3.96268   309.763)
(1423.0109   17.1973   -3.96264   309.871)
(1459.8009   17.1974   -3.96267   309.981)
(1497.4209   17.1973   -3.96266   310.094)
(1535.9109   17.1974   -3.96271   310.21 )
(1575.2809   17.1974   -3.96272   310.328)
(1615.5509   17.1975   -3.96275   310.449)
(1656.7509   17.1974   -3.96276   310.572)
(1698.8909   17.1976   -3.96282   310.698)
(1742.0009   17.1975   -3.96286   310.828)
(1786.0909   17.1977   -3.96293   310.96 )
(1831.2009   17.1976   -3.96293   311.095)
(1877.3409   17.1978   -3.96297   311.233)
(1924.5409   17.1978   -3.96298   311.374)
(1972.8209   17.1979   -3.96303   311.519)
(2022.2009   17.1978   -3.96303   311.667)
(2072.7209   17.198    -3.9631    311.818)
(2124.4009   17.198    -3.96313   311.974)
(2177.2609   17.1982   -3.96323   312.132)
(2231.3409   17.198    -3.96321   312.295)
(2286.6509   17.1983   -3.96327   312.461)
(2343.2309   17.1981   -3.96323   312.63 )
(2401.1109   17.1983   -3.96333   312.804)
(2460.3209   17.1981   -3.96327   312.982)
(2520.8909   17.1984   -3.96335   313.163)
(2582.8409   17.1981   -3.96325   313.349)
(2646.2109   17.1985   -3.96337   313.539)
(2711.0409   17.1982   -3.96327   313.734)
(2777.3509   17.1986   -3.96341   313.933)
(2845.1809   17.1981   -3.96324   314.136)
(2914.5709   17.1987   -3.9634    314.345)
(2985.5509   17.1981   -3.96321   314.557)
(3058.1609   17.1987   -3.96344   314.775)
(3132.4309   17.1981   -3.96318   314.998)
(3208.4009   17.1988   -3.96348   315.226)
(3286.1209   17.1981   -3.96321   315.459)
(3365.6109   17.1989   -3.96357   315.698)
(3446.9309   17.198    -3.96316   315.942)
(3530.1209   17.199    -3.96359   316.191)
(3615.2109   17.198    -3.96313   316.446)
(3702.2509   17.1992   -3.96364   316.708)
(3791.2909   17.1979   -3.963     316.975)
(3882.3709   17.1993   -3.96373   317.248)
(3975.5409   17.1978   -3.96302   317.527)
(4070.8409   17.1994   -3.96381   317.813)
(4168.3309   17.1977   -3.96295   318.105)
(4268.0509   17.1995   -3.96393   318.405)
(4370.0609   17.1976   -3.9629    318.711)
(4474.4109   17.1997   -3.96416   319.024)
(4581.1509   17.1975   -3.96288   319.344)
(4690.3409   17.1999   -3.96421   319.672)
(4802.0309   17.1973   -3.96287   320.007)
(4916.2909   17.2      -3.96459   320.35 )
(5033.1609   17.1972   -3.96436   320.701)
(5152.7109   17.2001   -3.96639   321.059)
(5275.0009   17.1972   -3.96559   321.425)
(5400.1009   17.2005   -3.96649   321.796)
(5528.0609   17.1973   -3.96605   322.179)
(5658.9609   17.191    -3.96465   322.572)
(5792.8609   17.187    -3.95423   322.968)
);

// Update internal field.
updateInternalFields      true;

// Update boundary field.
updateBoundaryFields      true;

// ************************************************************************* //
